# CMake 最低版本号要求
cmake_minimum_required (VERSION 2.8)

set(CMAKE_CXX_STANDARD 11)

# 交叉编译 --- 设置编译器和目标平台
set(CMAKE_CXX_COMPILER "arm-linux-g++")
set(CMAKE_C_COMPILER "arm-linux-gcc")

# project(NetworkHttpCmd)
include_directories(../3rd/CJson)
include_directories(../Common)
include_directories(../SystemTools)
include_directories(../Log)
include_directories(../3rd/Sqlite3)


aux_source_directory(../3rd/CJson CJSON_SRCS)
aux_source_directory(../SystemTools SYSTEM_SRCS)


aux_source_directory(. DIR_SRCS)
# aux_source_directory(NetworkHttpCmd DIR_NETWORK_HTTP)

# add_library(NetworkHttpCmd ${DIR_SRCS})
add_executable(NetworkHttpCmd ${DIR_SRCS} ${CJSON_SRCS} ${SYSTEM_SRCS})


target_link_libraries(NetworkHttpCmd  ${CMAKE_CURRENT_SOURCE_DIR}/../Log/libLogClientLib.a)

# 链接线程库
find_package(Threads)
target_link_libraries(NetworkHttpCmd ${CMAKE_THREAD_LIBS_INIT})